<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.AddressListModule.bean.*,util.*"%>  
<%@page import="com.AddressListModule.bean.*"%>
<%@page import="com.AddressListModule.dao.*"%>
<%@page import="util.*"%>
<%
	//---------分页
	int currentPage=1;
	if(request.getParameter("Page")!=null)
	{
		currentPage=Integer.parseInt(request.getParameter("Page"));
	}
	List<ContactBean> contactList = (ArrayList)session.getAttribute("contactList");
	String dirId = request.getParameter("dirId");
	int colSpanNum = 8;
%>
<jsp:include page="../head.jsp"></jsp:include>
  <body style="align:center">

				<ul class="tabs-nav clearfix">
					<li>
						联系人
					</li>
					
				</ul>
				<div class="tabs-panel">
					<table width="90%" class="datalist">
						<thead>
							
							<tr>
								<td>
									联系人
								</td>
								<td>
									手机号码
								</td>
								<td>
									时间
								</td>
							</tr>
						</thead>
						<%
							if (contactList!=null&&contactList.size()>0) {
								 MyPagination mPage=new MyPagination();
								 contactList=mPage.getInitPage(contactList,currentPage,10);
								for (ContactBean contactBean : contactList) {
						%>
						<tr>
							<td><%=contactBean.getCustomerName()%></td>
							<td><%=contactBean.getCustomerPhone()%></td>
							<td><%=Constant.nullToString(contactBean.getLastTime())%></td>
						</tr>
						<%
							}
								%>
								 <tr>
		     	   					<td colspan="<%=colSpanNum %>"  class="tc" >
		     	   					<%=mPage.printCtrl("./AddressServlet",currentPage,"&method=getLinkMan&dirId="+dirId) %>
		     	   					</td>
	     	                      </tr>
									<%
							}
						%>
					</table>
				</div>
</div>
	</body>
</html>
